<?
include 'Module/AlbumModule.php';
$albumMD=new AlbumModule();
$data=$albumMD->getAlbums();
echo $albumMD->error;
?>
<li id="page_GALLERY">
<div class="slogan">Gallery</div>
<div class="box">
    <div class="subbox">
        <div class="">
            <h2 class="newfont bold">Photo Albums</h2>
            <div style="padding-left: 20px;<?=$paras["process_height"]?>">
                <?

                if($data!=null)
                foreach ($data as $al){
                    if(!$al["delete"]){
                    $albumdetails=$albumMD->getAlbumDetail($al["id"]);
                        if($albumdetails!=null){
                            ?>
                            <div class="gal1">
                                <div class="photo1">
                                    <a href="<?=$albumdetails[0]["image"]?>" rel="prettyPhoto[album_<?=$al["id"]?>]" title="<?=$al["title"]?>">
                                        <img src="<?=$albumdetails[0]["image"]?>" class="border1" style="border-color: rgb(63, 63, 63); ">
                                        <span style="opacity: 0; "></span></a></div>
                                <strong><?=$al["album"]?></strong>
                            </div>
                            <?
                            for($i=1;$i<count($albumdetails);$i++){
                                ?><a href="<?=$albumdetails[$i]["image"]?>" class="hidden" rel="prettyPhoto[album_<?=$al["id"]?>]" title="<?=$al["album"]?>"></a><?
                            }
                        }
                    }

                }
                ?>
                            
            </div>
            <div class="clear"></div>
        </div>
    </div>
</div>
</li>